package com.qjc.demo.decorator.service;

import org.springframework.beans.factory.annotation.Autowired;

/**
 * @ClassName: DecoratorPerson
 * @Description:
 * @Author: qjc
 * @Date: 2021/8/24 5:46 下午
 */
public abstract class DecoratorPerson implements PersonService {

    protected PersonService personService;

    public DecoratorPerson(PersonService personService) {
        this.personService = personService;
    }

    @Override
    public String work() {
        return personService.work();
    }

}
